/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-20 08:47:55
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-20 08:50:25
 */
public class Test01Animal{
    public static void main(String[] args){
        //创建对象
        Animal a = new Animal();
        a.eat();
        a.sleep();
        Cat c = new Cat();
        c.eat();
        c.sleep();
        Dog d = new Dog();
        d.eat();
        d.sleep();
    }
}
